using IQIGame.Onigao.Framework;
using UnityEngine;

namespace IQIGame.Onigao.GamePlay
{
    /// <summary>
    /// 特殊地面触发器，可以改脚本声音特效，或者其他特殊地面需要的功能。
    /// </summary>
    [RequireComponent(typeof(Collider))]
    public class SceneGroundTrigger : MonoBehaviour, ISceenTriggerMono, IBetterPrioritizElement
    {
        // 优先级
        [SerializeField]
        [Header("优先级，优先级越大越优先")]
        private int _priority = 0;

        public int priority
        {
            get { return _priority; }
        }

        [SerializeField]
        [Header("地面类型，对应SceneGround表的Id")]
        private int _groundId;

        public int groundId => _groundId;
    }
}
